package com.langfeiyes.pattern.flyweight;


/**
 * 具体享元
 */
public class ConcreteFlyWeight implements IFlyWeight{
    //内部状态
    private String intrinsicState;

    public ConcreteFlyWeight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsieState) {
        System.out.println("ConcreteFlyWeight---内部：" + intrinsicState + "---外部：" + extrinsieState);
    }
}
